package org.xiji.brige;

/**
 * 车抽象类
 */
public abstract class CarColor {
    /**
     * 车类型
     */
    protected CarType carType;
    public CarColor(CarType carType) {
        this.carType = carType;
    }


    /**
     *
     * 抽象方法
     */
    public abstract String getCarColor();

    /**
     * 介绍汽车
     */
    public void introduceCar(){
        System.out.println("这是"+carType.getType()+"是"+getCarColor());
    }
}
